package com.dnr.arch.kernel;

import com.dnr.arch.kernel.exceptions.KernelExceptionConstants;
import com.dnr.arch.kernel.exceptions.KernelInitializationException;

public class Application {

	private static String env = null;
	
	public static void initialize() throws KernelInitializationException{
		if(env==null){
			throw new KernelInitializationException(KernelExceptionConstants.ENV_NOT_SET_ERROR);
		}
		
		//Initializing Kernel Factory
		System.out.println("///////Initializing Kernel Factory");
		KernelFactory.initialize();
	}

	public static String getEnv() {
		return env;
	}

	public static void setEnv(String env) {
		Application.env = env;
	}
	
	
	
}
